/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package th.stripes.action;

import com.google.inject.Inject;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.StreamingResolution;
import net.sourceforge.stripes.action.UrlBinding;
import th.manager.YearManager;
import th.stripes.BaseActionBean;

/**
 *
 * @author HARISH
 */
@UrlBinding("/year/{islamicYear}")
public class YearActionBean extends BaseActionBean{
    @Inject
    private YearManager yearManager;
    private String islamicYear;

    public String getIslamicYear() {
        return islamicYear;
    }

    public void setIslamicYear(String islamicYear) {
        this.islamicYear = islamicYear;
    }
    public Resolution normalYear() {    
        return new StreamingResolution("text/plain", yearManager.getNormalYear(islamicYear));
    }
}
